import '@/assets/css/global.css'
import '@/assets/font/iconfont.css'
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import SocketService from './util/socket_service'
import * as echarts from 'echarts'
import { chalk } from '../public/static/theme/chalk'
import { vintage } from '../public/static/theme/vintage'
import { pinia } from '@/stores/index'


echarts.registerTheme('chalk',chalk)
echarts.registerTheme('vintage',vintage)
window.echarts = echarts

import App from './App.vue'
import router from './router'

//websocket服务
SocketService.Instance.connect()
window.SocketService=SocketService.Instance

const app = createApp(App)

app.use(pinia)
app.use(router)

app.mount('#app')
